package com.joker.demo.core.domain.bo;


import java.io.Serializable;

/**
 * 客户端-> 调度中心，注册任务时的消息。属于自动注册
 *
 * @author : feixiang.li
 * @since : 2025-07-24 14:26
 */
public class JobRegistryDetailBO implements Serializable {

    /**
     * 任务名称
     */
    private String jobName;

    /**
     * 任务描述
     */
    private String jobDesc;

    /**
     * 任务表达式。
     */
    private String cronExpression;


    /**
     * job类型，是否支持分片参数
     */
    private Integer sharding;


    private Integer retryCount;


    /**
     * 超时时间(秒)
     */
    private Integer timeout;

    /**
     * TimeoutUnit
     */
    private Integer timeoutUnit;


    @Override
    public String toString() {
        return "JobRegistryDetailBO{" +
                "jobName='" + jobName + '\'' +
                ", jobDesc='" + jobDesc + '\'' +
                ", cronExpression='" + cronExpression + '\'' +
                ", sharding=" + sharding +
                ", retryCount=" + retryCount +
                ", timeout=" + timeout +
                ", timeoutUnit=" + timeoutUnit +
                ", alarmEmail='" + alarmEmail + '\'' +
                '}';
    }

    /**
     * 报警邮箱
     */
    private String alarmEmail;


    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    public String getJobDesc() {
        return jobDesc;
    }

    public void setJobDesc(String jobDesc) {
        this.jobDesc = jobDesc;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public Integer getSharding() {
        return sharding;
    }

    public void setSharding(Integer sharding) {
        this.sharding = sharding;
    }

    public Integer getRetryCount() {
        return retryCount;
    }

    public void setRetryCount(Integer retryCount) {
        this.retryCount = retryCount;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public Integer getTimeoutUnit() {
        return timeoutUnit;
    }

    public void setTimeoutUnit(Integer timeoutUnit) {
        this.timeoutUnit = timeoutUnit;
    }

    public String getAlarmEmail() {
        return alarmEmail;
    }

    public void setAlarmEmail(String alarmEmail) {
        this.alarmEmail = alarmEmail;
    }
}
